<?
// AUTOLOAD CLASSES
function __autoload($class_name) {
    require $class_name . '.php';
}

$timer=new Timer();
$timer->start();

// SET YOUR SITE URL
define("SITE_DIR", "admin/");

$html = new Strings(SITE_DIR . 'html/', '.html');
$sql = new Strings(SITE_DIR . 'sql/', '.sql');
$html->set('site_dir', SITE_DIR);
$html->set('css_dir', 'css/');

switch($_GET['action']) {
	case 'reset': include(SITE_DIR . 'reset.php');
		break;
	default: ;
}

// html METHOD TO CREATE THE FINAL HTML OUTPUT
echo $html->mixStrings('index');

// Mostrar temporizador
$elapsedTime = $timer->stop();
$_SESSION['timer'] = ($_SESSION['timer'] + $elapsedTime) / 2;
echo 'The average time spent was '.$_SESSION['timer'].' seconds'; 
?>